<?php
class UserDVO
{
	private $ID;
	private $Email;
	private $Password;
	private $FirstName;
	private $LastName;
	private $Name;
	private $Role;
	private $GroupID;
	
	
	function __construct($ID = null, $Email = null, $Password = null, $FirstName = null, $LastName = null, $Role = null, $GroupID = null){
		global $Roles;
		$this->setID($ID);
		$this->setEmail($Email);
		$this->setPassword($Password);
		$this->setFirstName($FirstName);
		$this->setLastName($LastName);
		$this->setRole($Role == null ? $Roles["Guest"]:$Role);
		$this->setGroupID($GroupID);
	}
    /**
     * Returns $Email.
     * @see UserInfo::$Email
     */
    public function getEmail()
    {
        return $this->Email;
    }
    
    /**
     * Sets $Email.
     * @param object $Email
     * @see UserInfo::$Email
     */
    public function setEmail($Email)
    {
        $this->Email = $Email;
    }
    
    /**
     * Returns $FirstName.
     * @see UserInfo::$FirstName
     */
    public function getFirstName()
    {
        return $this->FirstName;
    }
    
    /**
     * Sets $FirstName.
     * @param object $FirstName
     * @see UserInfo::$FirstName
     */
    public function setFirstName($FirstName)
    {
        $this->FirstName = $FirstName;
    }
    
    /**
     * Returns $ID.
     * @see UserInfo::$ID
     */
    public function getID()
    {
        return $this->ID;
    }
    
    /**
     * Sets $ID.
     * @param object $ID
     * @see UserInfo::$ID
     */
    public function setID($ID)
    {
        $this->ID = $ID;
    }
    
    /**
     * Returns $LastName.
     * @see UserInfo::$LastName
     */
    public function getLastName()
    {
        return $this->LastName;
    }
    
    /**
     * Sets $LastName.
     * @param object $LastName
     * @see UserInfo::$LastName
     */
    public function setLastName($LastName)
    {
        $this->LastName = $LastName;
    }
    
    /**
     * Returns $Password.
     * @see UserInfo::$Password
     */
    public function getPassword()
    {
        return $this->Password;
    }
    
    /**
     * Sets $Password.
     * @param object $Password
     * @see UserInfo::$Password
     */
    public function setPassword($Password)
    {
        $this->Password = $Password;
    }

    /**
     * Returns $Role.
     * @see UserInfo::$Role
     */
    public function getRole()
    {
        return $this->Role;
    }
    
    /**
     * Sets $Role.
     * @param object $Role
     * @see UserInfo::$Role
     */
    public function setRole($Role)
    {
        $this->Role = $Role;
    }

    /**
     * Returns $Name.
     * @see UserDVO::$Name
     */
    public function getName()
    {
        return $this->FirstName." ".$this->LastName;
    }

    /**
     * Returns $GroupID.
     * @see UserDVO::$GroupID
     */
    public function getGroupID()
    {
        return $this->GroupID;
    }
    
    /**
     * Sets $GroupID.
     * @param object $GroupID
     * @see UserDVO::$GroupID
     */
    public function setGroupID($GroupID)
    {
        $this->GroupID = $GroupID;
    }

}
?>